<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2018/12/12
 * Time: 12:24
 */

namespace app\index\controller;
use think\Db;


class Test
{
    public function index(){
        $where = [];
        $where['id'] = [['eq',1],['like',"2"],"%".'or'."%"];
        $whereOr['feiji'] = [['eq',3],['like',"4"],"%".'or'."%"];
        $whereOr['title'] = ['eq','title','or'];
        $data = Db::name('brand')->where($where)->whereOr($whereOr)->fetchSql(true)->select();
        halt($data);
    }
}